package com.javahash.spring.Model;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "exchangeRates")
public class MongoExchangeModel {

    String date;
    String currencies;
    @Id
    private String id;

    public MongoExchangeModel(String date, String currencies) {
        super();
        this.date = date;
        this.currencies = currencies;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getCurrencies() {
        return currencies;
    }

    public void setCurrencies(String currencies) {
        this.currencies = currencies;
    }

    @Override
    public String toString() {
        return "User [id=" + id + ", date=" + date + ", currencies=" + currencies + "]";
    }


}